
<title>控制台</title>

<div class="layui-card layadmin-header">
  <div class="layui-breadcrumb" lay-filter="breadcrumb">
    <a lay-href="">控制台</a>
  </div>
</div>
<script type="text/html" template lay-url="{{ layui.setter.baseUrl }}index/tongji">
<div class="layui-fluid">
  <div class="layui-row layui-col-space15">
    <div class="layui-col-sm6 layui-col-md4">
      <div class="layui-card">
        <div class="layui-card-header">
          用户数量
          <span class="layui-badge layui-bg-cyan layuiadmin-badge">总</span>
        </div>
        <div class="layui-card-body layuiadmin-card-list">
          <p class="layuiadmin-big-font">{{ d.data.usernum }}</p>
          <p>
            今日新增用户
            <span class="layuiadmin-span-color">{{ d.data.usernum1 }} <i class="layui-icon">&#xe770;</i></span>
          </p>
        </div>
      </div>
    </div>
    <div class="layui-col-sm6 layui-col-md4">
      <div class="layui-card">
        <div class="layui-card-header">
          商家数量
          <span class="layui-badge layui-bg-cyan layuiadmin-badge">总</span>
        </div>
        <div class="layui-card-body layuiadmin-card-list">
          <p class="layuiadmin-big-font">{{ d.data.merchnum }}</p>
          <p>
            今日新增商家 
            <span class="layuiadmin-span-color">{{ d.data.merchnum1 }} <i class="layui-icon">&#xe650;</i></span>
          </p>
        </div>
      </div>
    </div>
    <div class="layui-col-sm6 layui-col-md4">
      <div class="layui-card">
        <div class="layui-card-header">
          活动数量
          <span class="layui-badge layui-bg-cyan layuiadmin-badge">总</span>
        </div>
        <div class="layui-card-body layuiadmin-card-list">

          <p class="layuiadmin-big-font">{{ d.data.salenum }}</p>
          <p>
            今日新增活动 
            <span class="layuiadmin-span-color">{{ d.data.salenum1 }} <i class="layui-icon">&#xe66e;</i></span>
          </p>
        </div>
      </div>
    </div>

    <div class="layui-col-sm6">
      <div class="layui-card">
        <div class="layui-card-header">
          商家绑定
        </div>
        <div class="layui-card-body layuiadmin-card-list" style="height:230px">
          <p><img src="{{ layui.setter.baseUrl }}index/bindmerch" width="200"></p>
        </div>
      </div>
    </div>
    <div class="layui-col-sm6">
      <div class="layui-card">
        <div class="layui-card-header">
          获取openid
        </div>
        <div class="layui-card-body layuiadmin-card-list" style="height:230px">
          <p><img src="{{ layui.setter.baseUrl }}index/getopenid" width="200"></p>
          
          
        </div>
      </div>
    </div>
    <div class="layui-col-sm6">
      <div class="layui-card">
        <div class="layui-card-header">
        </div>
        <div class="layui-card-body layuiadmin-card-list" style="height:230px">
          <p>
            链接：<a href="{{ d.data.mobileurl }}/index/merchadmin#/" target="_blank">{{ d.data.mobileurl }}/merch/merchadmin#/</a>
          </p>
          <p>
            账号：手机号
          </p>
          <p>
            默认密码：123456
          </p>
        </div>
      </div>
    </div>
    <div class="layui-col-sm6">
      <div class="layui-card">
        <div class="layui-card-header">
          手机端商家后台
        </div>
        <div class="layui-card-body layuiadmin-card-list" style="height:230px">
          <p><img src="{{ layui.setter.baseUrl }}index/merchadmin" width="200"></p>
          
          <p>
            链接：<a href="{{ d.data.mobileurl }}/index/merch" target="_blank">{{ d.data.mobileurl }}/merch/merch</a>
          </p>
        </div>
      </div>
    </div>
  </div>
</div>
</script>
<script>
layui.use(['admin', 'laytpl'], function(data){
  var $ = layui.$
  ,admin = layui.admin
  ,element = layui.element
  ,layer = layui.layer
  ,laytpl = layui.laytpl;
  
  
                  
  

  layui.upgrade = function(){
    $.get(layui.setter.baseUrl+'index.upgrade', function(ret){
      var {code,msg,data} = ret;
      layer.msg(msg);
    });
  }
});
</script>